LassoScript Utility
Basics Browse Detail

[Integer->BitNot]

Tag Link [Integer->BitNot] Category Math
Type Member Source Available No
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type None (Modifies in place) Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0

Description

[Integer->BitNot] flips every bit in the base integer.

Syntax

[Integer Variable->(BitNot)]

Parameters

No Parameters Required.

Examples

To perform the bitwise NOT operation on an integer:

Use the [Integer->BitNot] tag. Every bit in the target integer will be flipped. In the following example the integer 1 becomes the integer -2.

[Variable: 'Result'=1]
[($Result)->(BitNot)]
[Variable: 'Result']

-2